<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"> 
        <script src="js/jquery-3.2.0.min.js"></script>
        <script src="js/report.js"></script>
        <script src="js/echarts.js"></script>
        <script>
            $(function () {
                date = new Date;
                year = date.getFullYear();
                $('#yx').text(year);
                $('#zy').text(year);
                $.ajax({
                    url: 'Query.php?type=yxcqByYear',
                    datatype: 'json',
                    type: 'get',
                    success: function (data) {
                        data = [{name: '软件学院', value: [0.95, 0.85, 0.94, 0.94, 0.85, 0.78, 0.98, 0.79, 0.86, 0.88, 0.90, 0.98]},
                            {name: '电子工程学院', value: [0.75, 0.93, 0.85, 0.94, 0.67, 0.87, 0.65, 0.73, 0.82, 0.94, 0.82, 0.93]},
                            {name: '经贸学院', value: [0.65, 0.68, 0.64, 0.72, 0.78, 0.84, 0.89, 0.82, 0.91, 0.94, 0.86, 0.88]}
                        ];
                        DrawStdLine('report_yx_year', data, '院系' + year + '年度考勤报表', '');
                    }
                });
                $.ajax({
                    url: 'Query.php?type=zycqByYear',
                    datatype: 'json',
                    type: 'get',
                    success: function (data) {
                        data = [{name: '软件技术', value: [0.95, 0.85, 0.94, 0.94, 0.85, 0.78, 0.98, 0.79, 0.86, 0.88, 0.90, 0.98]},
                            {name: '会计', value: [0.75, 0.93, 0.85, 0.94, 0.67, 0.87, 0.65, 0.73, 0.82, 0.94, 0.82, 0.93]},
                            {name: '计算机信息管理', value: [0.65, 0.68, 0.64, 0.72, 0.78, 0.84, 0.89, 0.82, 0.91, 0.94, 0.86, 0.88]},
                            {name: '计算机网络技术', value: [0.75, 0.93, 0.85, 0.94, 0.67, 0.87, 0.65, 0.73, 0.82, 0.94, 0.82, 0.93]},
                            {name: '商务英语', value: [0.65, 0.68, 0.64, 0.72, 0.78, 0.84, 0.89, 0.82, 0.91, 0.94, 0.86, 0.88]}
                        ];
                        DrawStdLine('report_zy_week', data, '专业' + year + '年度考勤报表', '');
                    }
                });
            })
        </script>
    </head>
    <body>
<!--        <p style="text-align:center;">院系<span style="color:blue;font-weight:bold;" id="yx"></span>年度考勤报表</p>-->
        <a href ="main.php" style="float:right;text-decoration:none;font-size:12px;" target="_parent">返回</a>
        <div id="report_yx_year" style="height:260px;width:100%;float:left;">
        </div>
<!--        <p style="text-align:center;">专业<span style="color:blue;font-weight:bold;"  id="zy"></span>年度考勤报表</p>-->
        <div id="report_zy_week" style="height:260px;width:100%;float:left;">
        </div>
    </body>      
</html>


